﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200037D RID: 893
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DailyTask : IMessage<DailyTask>, IMessage, IEquatable<DailyTask>, IDeepCloneable<DailyTask>, IBufferMessage
	{
		// Token: 0x17000B88 RID: 2952
		// (get) Token: 0x06002810 RID: 10256 RVA: 0x0006FBCC File Offset: 0x0006DDCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DailyTask> Parser
		{
			get
			{
				return DailyTask._parser;
			}
		}

		// Token: 0x17000B89 RID: 2953
		// (get) Token: 0x06002811 RID: 10257 RVA: 0x0006FBD3 File Offset: 0x0006DDD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DailyTaskReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B8A RID: 2954
		// (get) Token: 0x06002812 RID: 10258 RVA: 0x0006FBE5 File Offset: 0x0006DDE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DailyTask.Descriptor;
			}
		}

		// Token: 0x06002813 RID: 10259 RVA: 0x0006FBEC File Offset: 0x0006DDEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyTask()
		{
		}

		// Token: 0x06002814 RID: 10260 RVA: 0x0006FBF4 File Offset: 0x0006DDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyTask(DailyTask other) : this()
		{
			this.isFinished_ = other.isFinished_;
			this.mainMissionId_ = other.mainMissionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002815 RID: 10261 RVA: 0x0006FC25 File Offset: 0x0006DE25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DailyTask Clone()
		{
			return new DailyTask(this);
		}

		// Token: 0x17000B8B RID: 2955
		// (get) Token: 0x06002816 RID: 10262 RVA: 0x0006FC2D File Offset: 0x0006DE2D
		// (set) Token: 0x06002817 RID: 10263 RVA: 0x0006FC35 File Offset: 0x0006DE35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsFinished
		{
			get
			{
				return this.isFinished_;
			}
			set
			{
				this.isFinished_ = value;
			}
		}

		// Token: 0x17000B8C RID: 2956
		// (get) Token: 0x06002818 RID: 10264 RVA: 0x0006FC3E File Offset: 0x0006DE3E
		// (set) Token: 0x06002819 RID: 10265 RVA: 0x0006FC46 File Offset: 0x0006DE46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x0600281A RID: 10266 RVA: 0x0006FC4F File Offset: 0x0006DE4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DailyTask);
		}

		// Token: 0x0600281B RID: 10267 RVA: 0x0006FC5D File Offset: 0x0006DE5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DailyTask other)
		{
			return other != null && (other == this || (this.IsFinished == other.IsFinished && this.MainMissionId == other.MainMissionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600281C RID: 10268 RVA: 0x0006FC9C File Offset: 0x0006DE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsFinished)
			{
				num ^= this.IsFinished.GetHashCode();
			}
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600281D RID: 10269 RVA: 0x0006FCF4 File Offset: 0x0006DEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600281E RID: 10270 RVA: 0x0006FCFC File Offset: 0x0006DEFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600281F RID: 10271 RVA: 0x0006FD08 File Offset: 0x0006DF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this.IsFinished)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.IsFinished);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002820 RID: 10272 RVA: 0x0006FD64 File Offset: 0x0006DF64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsFinished)
			{
				num += 2;
			}
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002821 RID: 10273 RVA: 0x0006FDB0 File Offset: 0x0006DFB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DailyTask other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsFinished)
			{
				this.IsFinished = other.IsFinished;
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002822 RID: 10274 RVA: 0x0006FE00 File Offset: 0x0006E000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002823 RID: 10275 RVA: 0x0006FE0C File Offset: 0x0006E00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsFinished = input.ReadBool();
					}
				}
				else
				{
					this.MainMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000FF9 RID: 4089
		private static readonly MessageParser<DailyTask> _parser = new MessageParser<DailyTask>(() => new DailyTask());

		// Token: 0x04000FFA RID: 4090
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000FFB RID: 4091
		public const int IsFinishedFieldNumber = 8;

		// Token: 0x04000FFC RID: 4092
		private bool isFinished_;

		// Token: 0x04000FFD RID: 4093
		public const int MainMissionIdFieldNumber = 4;

		// Token: 0x04000FFE RID: 4094
		private uint mainMissionId_;
	}
}
